package com.paziy.calc.operations;

public class Subtraction implements Operation {

	@Override
	public double perform(double... operands) {
		double result = operands[0];
		
		for (int index = 1; index < operands.length; ++index ) {
			result -= operands[index];
		}
				
		return result;
	}

}
